package cn.lysj.framework.customer.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZhangWenJian
 * @data 2019/1/16--15:34
 * @description
 */
@Data
public class CustomerVipInfoVo {

    private String customerInfoId; // 用户信息Id
    private String name;         //姓名
    private String phone;        //手机
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date birthday;       //生日
    private String customerVipId;//vipId
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal integral; //积分
    private String birthdayGetCouponRecord;//生日领取标识字段 记录年份 例如1997 用于识别用户生日是否领取过券
    private String newVipGetCouponRecord;  //会员领取标识字段 记录年份         用户识别用户是否领取过会员券

    public CustomerVipInfoVo(String customerInfoId,String name, String phone, Date birthday, String customerVipId, BigDecimal integral, String birthdayGetCouponRecord, String newVipGetCouponRecord) {
        this.customerInfoId = customerInfoId;
        this.name = name;
        this.phone = phone;
        this.birthday = birthday;
        this.customerVipId = customerVipId;
        this.integral = integral;
        this.birthdayGetCouponRecord = birthdayGetCouponRecord;
        this.newVipGetCouponRecord = newVipGetCouponRecord;
    }
}
